package com.woniuxy.commons.exception.code;

public enum UserExceptionCode {
    USER_NOT_FOUND(5001, "用户还未注册"),
    USER_PASSWORD_ERROR(5002, "用户名或密码错误"),
    USER_NOT_LOGIN(5003, "当前用户尚未登录"),
    USER_HAS_REGISTER(5004, "该用户已注册"),
    USER_NOT_ACTIVE(5005, "用户还未激活"),
    USER_DEFAULT_DF_EXITS(5006, "用户默认地址已存在"),
    USER_CODE_EXITS(5007, "手机验证码已存在"),
    USER_CODE_NOT_EXITS(5008, "手机验证码不存在"),
    USER_CODE_WRONG(5009, "手机验证码有误"),
    USER_NOT_AccountName(5010, "请输入用户名"),
    USER_NOT_AccountPassword(5011, "请输入密码"),
    USER_NOT_AccountPhone(5012, "请输入手机号"),
    ;

    private Integer code;
    private String message;

    UserExceptionCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
